import utility

class MemberEntity(object):
    def __init__(self,username,name,email,userType,password,gender=None,address=None,birthDate=None,phone=None,regDate=None,userTypeDesc=None):
        self.__username = username
        self.__name = name
        self.__gender = gender
        self.__email = email
        self.__address = address
        self.__birthDate = birthDate
        self.__phone = phone
        self.__regDate = regDate
        self.__userType = userType
        self.__userTypeDesc = userTypeDesc
        self.__password = password
        
    ColumnNames = utility.Enum(
        username = "Username",
        name = "Name",
        gender = "Gender",
        email = "Email",
        address = "Address",
        birthDate = "BirthDate",
        phone = "Phone",
        regDate = "RegDate",
        userType = "UserType",
        userTypeDesc = "UserTypeDesc",
        password = "Password"
        )

    def __get_username(self):
        return self.__username
    def __set_username(self, value):
        self.__username = value
    Username = property(fget=__get_username, fset=__set_username)


    def __get_name(self):
        return self.__name
    def __set_name(self, value):
        self.__name = value
    Name = property(fget=__get_name, fset=__set_name)


    def __get_gender(self):
        return self.__gender
    def __set_gender(self, value):
        self.__gender = value
    Gender = property(fget=__get_gender, fset=__set_gender)


    def __get_email(self):
        return self.__email
    def __set_email(self, value):
        self.__email = value
    Email = property(fget=__get_email, fset=__set_email)


    def __get_address(self):
        return self.__address
    def __set_address(self, value):
        self.__address = value
    Address = property(fget=__get_address, fset=__set_address)


    def __get_birthDate(self):
        return self.__birthDate
    def __set_birthDate(self, value):
        self.__birthDate = value
    BirthDate = property(fget=__get_birthDate, fset=__set_birthDate)


    def __get_phone(self):
        return self.__phone
    def __set_phone(self, value):
        self.__phone = value
    Phone = property(fget=__get_phone, fset=__set_phone)


    def __get_regDate(self):
        return self.__regDate
    def __set_regDate(self, value):
        self.__regDate = value
    RegDate = property(fget=__get_regDate, fset=__set_regDate)


    def __get_userType(self):
        return self.__userType
    def __set_userType(self, value):
        self.__userType = value
    UserType = property(fget=__get_userType, fset=__set_userType)


    def __get_userTypeDesc(self):
        return self.__userTypeDesc
    def __set_userTypeDesc(self, value):
        self.__userTypeDesc = value
    UserTypeDesc = property(fget=__get_userTypeDesc, fset=__set_userTypeDesc)

    def __get_password(self):
        return self.__password
    def __set_password(self, value):
        self.__password = value
    Password = property(fget=__get_password, fset=__set_password)
